package cn.edu.scau.cmi.yangqing.hibernate.domain;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;


public class Tutor {
	
	
	private Integer id;
	

	private String name;
	
	
	private Set<Student> studentSet = new HashSet<Student>();


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public Set<Student> getStudentSet() {
		return studentSet;
	}


	public void setStudentSet(Set<Student> studentSet) {
		this.studentSet = studentSet;
	}


	@Override
	public String toString() {
		return "Tutor [id=" + id + ", name=" + name   + "]";
	}
	
}
